package com.css.fxfzfxqh.modules.vulnerabilityData.service;

import com.css.fxfzfxqh.modules.vulnerabilityData.entity.BuildingIndividualVulnerability;
import com.css.fxfzfxqh.modules.vulnerabilityData.vo.MatrixConvertCurveVo;
import com.css.fxfzfxqh.modules.vulnerabilityData.vo.QueryParamsVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface VulnerabilityService {
    Map<String, Object> uploadExcel(MultipartFile file, String attachId, String type, String province, String city,String county);

    Map<String, Object> uploadShp(String fileIds, String type);

    Map<String, Object> page(QueryParamsVo queryParamsVo, int curPage, int pageSize);

    Map findById(String id,String type);

    Boolean update(Map<String, Object> map);

    Boolean delete(Map<String,Object>map);

    Map bridgeFindById(String id, String flag);

    Boolean bridgeDelete(Map<String, Object> map);

    void importExcel(MultipartFile file) throws Exception;

    Map<String, Object> getPage(int curPage, int pageSize);

    List<BuildingIndividualVulnerability> matrixFindByCode(String code);

    Boolean matrixUpdate(List<BuildingIndividualVulnerability> list);

    MatrixConvertCurveVo matrixConvertCurve(BuildingIndividualVulnerability list);
}
